package com.pshcp.common.tool;


import com.pshcp.common.enums.FileEnum;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description: TODO
 * @Author: xiaoche
 * @Date: 2022/11/3 12:31
 */
public class FileTool {

    /**
     * 获取路径前缀
     * 0 文章
     */
    public static String getPrefix(Integer type) {
        for (FileEnum fileEnum : FileEnum.values()) {
            if (fileEnum.getCode() == type.intValue()) {
                return fileEnum.getPath();
            }
        }
        return null;
    }
}
